package cloud.maque.admin.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 4color
 * @description mq_enum
 * @date 2023-03-16
 */
@Data
public class MqEnum implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    /**
     * enum_id
     */
    private String enumId;

    /**
     * enum_name
     */
    @TableField(updateStrategy = FieldStrategy.NOT_NULL, insertStrategy = FieldStrategy.NOT_NULL)
    private String enumName;

    /**
     * enum_value
     */
    @TableField(updateStrategy = FieldStrategy.NOT_NULL, insertStrategy = FieldStrategy.NOT_NULL)
    private String enumValue;

    /**
     * field_id
     */
    private String fieldId;

    /**
     * field_code
     */
    private String fieldCode;

    /**
     * parent_enum_id
     */
    private String parentEnumId;

    /**
     * 上一级键值
     */
    private String parentEnumValue;

    /**
     * enum_order
     */
    private Integer enumOrder;

    /**
     * disabled
     */
    private Integer disabled;

    /**
     * create_at
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * update_at
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
     * 说明
     */
    private String enumDesc;

    /**
     * tenant_id
     */
    @TableField(updateStrategy = FieldStrategy.NOT_NULL, insertStrategy = FieldStrategy.NOT_NULL)
    private String tenantId;

    public MqEnum() {
    }
}
